<extend name="Layout/main" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">撤销记录管理</block>
<block name="controller">撤销记录审核</block>
<block name="action">撤销记录审核</block>
<block name="label"></block>
<block name="content">
<div class="box box-danger">
	<div class="box-header with-border">
		<h3 class="box-title">撤销记录审核</h3>
	</div>
	<div class="box-body table-responsive">
		<empty name="data">
		<div class="alert alert-warning alert-dismissible">
			<h4><i class="icon fa fa-warning"></i>暂无任何记录</h4>
			未查到任何符合要求的记录！
		</div>
		</empty>
		<notempty name="data">
			<table class="table table-bordered table-hover table-striped">
				<tr>
					<td class="text-right col-sm-2">合同编号</td>
					<td>{$data.cancel_contract_id}</td>
				</tr>
				<tr>
					<td class="text-right col-sm-2">姓名</td>
					<td>{$data.cancel_name}</td>
				</tr>
				<tr>
					<td class="text-right col-sm-2">身份证号</td>
					<td>{$data.cancel_certificate_card}</td>
				</tr>
				<tr>
					<td class="text-right col-sm-2">手机号</td>
					<td>{$data.cancel_mobile_number}</td>
				</tr>
				<tr>
					<td class="text-right col-sm-2">银行卡号</td>
					<td>{$data.cancel_loan_bank_number}</td>
				</tr>
				<tr>
					<td class="text-right col-sm-2">银行名称</td>
					<td>{$data.cancel_bank_name}</td>
				</tr>
				<tr>
					<td class="text-right col-sm-2">合同状态</td>
					<td>{$data.contract_status}</td>
				</tr>
				<tr>
					<td class="text-right">校对状态</td>
					<td>{$data.match_status}</td>
				</tr>
				<tr>
					<td class="text-right">提交时间</td>
					<td>{$data.time}</td>
				</tr>
				<tr>
					<td class="text-right col-sm-2">用户备注</td>
					<td>{$data.cancel_customer_remark}</td>
				</tr>
				<tr>
					<td class="text-right">审核时间</td>
					<td>{$data.audit_time}</td>
				</tr>
				<tr>
					<td class="text-right">审核状态</td>
					<td>{$data.status}</td>
				</tr>
				<tr>
					<td class="text-right">状态</td>
					<td>{$data.state}</td>
				</tr>
			</table>
			<form class="form-horizontal" action="{:U('auditdo')}" method="post" rel-action="form">
				<div class="box-body">
					<div class="form-group">
						<label class="col-sm-2 control-label">审核意见</label>
						<div class="col-sm-10">
							<textarea type="text" class="form-control" name="remark" placeholder="请输入审核意见，没有可不填"  autocomplete="off">{$data['cancel_remark']}</textarea>
						</div>
					</div>
					<div class="box-footer">
						<if condition="$data.cancel_status == 'WAIT' || $data.cancel_status == 'INIT'">
							<input class="form-control"  type="hidden"  name="status" value="">
							<input class="form-control"  type="hidden"  name="id" value="{$data.cancel_id}">							
							<button type="submit" onclick="javascript:$('[name=status]').val('1');" class="btn btn-success">通过</button>
							<button type="submit" onclick="javascript:$('[name=status]').val('0');" class="btn btn-danger">驳回</button>
						</if>
					</div>
				</div>
			</form>
		</notempty>
	</div>
</div>
</block>